package com.youmans.admin.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication(scanBasePackages = "com.youmans")
@MapperScan("com.youmans.mapper")
public class EducationAdminApiApplication {

    @GetMapping("/test")
    public String test(){
        return "test1";
    }

    @GetMapping("/getUser")
    public String getUser(){
        return "getUser";
    }



    public static void main(String[] args) {

        SpringApplication.run(EducationAdminApiApplication.class) ;

//        ApplicationContext applicationContext = SpringApplication.run(EducationAdminApiApplication.class, args);
//        TaskManager taskManager = applicationContext.getBean(TaskManager.class);
//        TaskParam taskParam =  new TaskParam();
//        taskParam.setData("test");
//        taskParam.setTaskListenerBeanName("logTaskListener");
//        taskManager.pushTask(taskParam);
    }

}
